<h1>Listing locals</h1>

<table>
  <tr>
    <th>Id</th>
    <th>Name</th>
    <th>Descr</th>
    <th>Addr1</th>
    <th>Addrs2</th>
    <th>Phone1</th>
    <th>Phone2</th>
    <th>Capacity</th>
    <th>Restaurant</th>
    <th>Status</th>
    <th>Rate</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @locals.each do |local| %>
  <tr>
    <td><%= local.id %></td>
    <td><%= local.name %></td>
    <td><%= local.descr %></td>
    <td><%= local.addr1 %></td>
    <td><%= local.addrs2 %></td>
    <td><%= local.phone1 %></td>
    <td><%= local.phone2 %></td>
    <td><%= local.capacity %></td>
    <td><%= local.restaurant_id %></td>
    <td><%= local.status %></td>
    <td><%= local.rate %></td>
    <td><%= link_to 'Show', local %></td>
    <td><%= link_to 'Edit', edit_local_path(local) %></td>
    <td><%= link_to 'Destroy', local, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Local', new_local_path %>
